#include "lancepierre.h"

/*
LancePierre *test1=new LancePierre;
test1->setPos(20,20);
test1->setZValue(50);
sceneJeu->addItem(test1);
*/
void LancePierre::miseAJour(){
    portee= 3 +(niveau/2.0);
    force=10*(pow(niveau,1.5));
    cercle.setRect((-portee*(600.0/16)+600/32),(-portee*(600.0/16)+600/32),(2*portee*(600.0/16)),(2*portee*(600.0/16)));
    forceinit= 10*(pow(niveau,1.5));
}
int LancePierre::ameliorer(int credit){
    int i = Defense::ameliorer(credit);
    if (i!=0){
        miseAJour();
    }
    return i;
}


